<?php
use think\Route;

// api 接口
Route::group('api', function() {
    Route::group('v1', function() {
        Route::get('banner/:id','api/v1.Banner/getBanner');
    });
});

// 前台
Route::group(null, function() {
    Route::get('/','home/Index/index');
});

// 后台
Route::group('admin', function() {
    Route::get('/','admin/Admin/index');
    Route::get('login','admin/Login/index');
});